package com.taihua;

import com.taihua.transfer.ATSSocketClient;

import java.io.IOException;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

public class Main {
    private static final int NTHREAD = 10;
    private static final Executor exec = Executors.newFixedThreadPool(NTHREAD);
    public static void main(String[] args) throws Exception {
        exec.execute(getATSTask());
    }

    static Runnable getATSTask(){return new Runnable(){public void run(){//台华自有站端ats对接
            new ATSSocketClient().startConnect("127.0.0.1",502);System.out.println("ATStask over!");}};
    }
}
